﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nizm0.QOT.Library
{
    public class OpenFormEventArgs : System.EventArgs
    {
        public Library.Forms.MyMdiChild Form;
        //public Objects.IProcedure Procedure;
        public string[] Files;
        public string Text;
        public Type ObjectType;
        public System.Windows.Forms.Control Control;

        public enum Type { Form, Control, Files, Text }//, Procedure

        public OpenFormEventArgs(Library.Forms.MyMdiChild Form)
            : base()
        {
            this.Form = Form;
            ObjectType = Type.Form;
        }

        //public OpenFormEventArgs(Objects.IProcedure Procedure)
        //    : base()
        //{
        //    this.Procedure = Procedure;
        //    ObjectType = Type.Procedure;
        //}

        public OpenFormEventArgs(string[] Files)
            : base()
        {
            this.Files = Files;
            ObjectType = Type.Files;
        }

        public OpenFormEventArgs(string Text)
            : base()
        {
            this.Text = Text;
            ObjectType = Type.Text;
        }

        public OpenFormEventArgs(System.Windows.Forms.Control Control)
        {
            // TODO: Complete member initialization
            this.Control = Control;
            ObjectType = Type.Control;
        }
    }
}